<?php


namespace app\app\validate;


use think\Validate;

class ProjectEngineeringSample extends Validate
{
    protected $rule =   [
        'project_id'  => 'require',
        'area'   => 'require',
        'template_name' => 'require',
        'drawing_require' => 'require',
        'acceptance_specification' => 'require',
    ];

    protected $message  =   [
        'project_id.require' => '项目id不可为空',
        'area.require'     => '区域地址不可为空',
        'template_name.require'   => '样板名称不可为空',
        'drawing_require.require'  => '图纸要求不可为空',
        'acceptance_specification.require'        => '施工规范不可为空',
        'record.require'        => '工程拆分不可为空',
    ];
}